package com.shemy.sshiro.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.shemy.sshiro.domain.Token;
import com.shemy.sshiro.dao.TokenMapper;
import com.shemy.sshiro.service.TokenService;
@Service
public class TokenServiceImpl implements TokenService{

    @Resource
    private TokenMapper tokenMapper;

    @Override
    public int deleteByPrimaryKey(Integer userId) {
        return tokenMapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(Token record) {
        return tokenMapper.insert(record);
    }

    @Override
    public int insertSelective(Token record) {
        return tokenMapper.insertSelective(record);
    }

    @Override
    public Token selectByPrimaryKey(Integer userId) {
        return tokenMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(Token record) {
        return tokenMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Token record) {
        return tokenMapper.updateByPrimaryKey(record);
    }

}
